.PHONY:all
all:
	@cd compiler_server;\
	make;\
	cd -;\
	cd oj_server;\
	make;\
	cd -;\

.PHONY:output
output:
	mkdir -p output/compiler_server;\
	mkdir -p output/oj_server;\
	cp -rf compiler_server/compiler_server output/compiler_server;\
	cp -rf compiler_server/tempfile output/compiler_server;\
	cp -rf oj_server/oj_server output/oj_server;\
	cp -rf oj_server/conf output/oj_server;\
	cp -rf oj_server/lib output/oj_server;\
	cp -rf oj_server/questions output/oj_server;\
	cp -rf oj_server/template_html output/oj_server;\
	cp -rf oj_server/wwwroot output/oj_server;\


.PHONY:clean
clean:
	@cd compiler_server;\
	make clean;\
	cd -;\
	cd oj_server;\
	make clean;\
	cd -;\
	rm -rf output;




